int removeDuplicates(int* nums, int numsSize)
{
    int slow=0;
    int fast =1;
    while(fast<numsSize)
    {
        if(nums[slow] != nums[fast])
        {
            nums[++slow] = nums[fast];
        }
        fast++;
    }
    return ++slow;
}